 <?php 
 require_once "../include/global.php";
 $conn = dbconn();

 
 if (isset($_POST['del_id']))
{
	Del_group($_POST['del_id']);

}



//////////////////////function
		function Del_group($gi)
		{	
			$query="DELETE FROM `groups` WHERE `id` = $gi";
			$res=mysql_query($query)or die("ошибка при удалении");
			return $res;
		}

 mysql_close($conn); ?>